﻿#pragma once
#include <AsJsonObject.h>
#include <AsMetaType>
#include "NewPCIDemoDefine.h"
class ConfigData :
	public AsJsonObject
{
public:
	ConfigData();
	~ConfigData();

	virtual QJsonObject toJsonObject()const;
	virtual void fromJsonObject(const QJsonObject& json);

public:
	ConfigParams paramHardware;
	QString xmlPath;

protected:
	//virtual void onBuildStructure() const override;
};

//ParamHardware
void parseParam(ConfigParams& param, const QJsonValue& value);
void encodeParam(const ConfigParams& param, QJsonValueRef value);

//xmlPath
void parseParam(QString& param, const QJsonValue& value);
void encodeParam(const QString& param, QJsonValueRef value);

AS_DECLARE_META_TYPE(ConfigData)
